home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000124_dobbinsm@nc.rr.com_Fri Feb 27 14:53:17 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
2KB
Path: newsmaster.cc.columbia.edu!panix!news.linkpendium.com!news.glorb.com!postnews1.google.com!not-for-mail
From: dobbinsm@nc.rr.com (Matthew Dobbins)
Newsgroups: comp.protocols.kermit.misc
Subject: Comparing a file function output with built in variables
Date: 27 Feb 2004 11:32:59 -0800
Organization: http://groups.google.com
Lines: 29
Message-ID: <bb076936.0402271132.6b6e3c53@posting.google.com>
NNTP-Posting-Host: 24.211.134.32
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1077910379 24679 127.0.0.1 (27 Feb 2004 19:32:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 27 Feb 2004 19:32:59 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14829
Hello everyone!
I am writing a client/server kermit script to send a file from one
location to another, but I only want to send if the file has changed.
To overcome this, I decided to compare the md5sum output of the two
files. If they are different, I will send.
I have the md5sum of the server file (the new file) on the remote
machine in the built in variable \v(inmatch) (i sent it this using
input/output commands). I would like to compare the \v(inmatch) to
\f_getblock(\m(channel),32).
To make that last statement clear, here is what I'm doing on the
remote machine to get the md5sum of the file to be updated:
run md5sum ad.sxi > sum (get the md4sum of the ad file and put into
file sum)
file open channel sum (open file for reading in kermit)
?COMPARE? \v(inmatch) with \f_getblock(\m(channel),32) (they are both
the same types - 32 long)
IF the compare is true, i want to hang up, otherwise send
Can anyone help me with the compare? I have searched the
documentation and cannot find anything that will do this. Any
suggestions?
Thanks.
matt